export function debounceTool (fn, delay=500) {
    let debounceTimer = null;
    return function () {
        let context = this;
        let args = arguments;
        clearTimeout(debounceTimer);
        debounceTimer = setTimeout(function () {
            fn.apply(context, args);
        }, delay)
    }
}